
package Loader;

public class Pair implements Comparable {

    public int noClass;
    public float[] features;

    public Pair(int noClass, float[] features) {

        this.noClass = noClass;
        this.features = features;

    }

    @Override
    public boolean equals(Object arg0) {

        Pair pair = (Pair) arg0;
        return pair.noClass == this.noClass;

    }

    public int compareTo(Object arg0) {

        Pair pair = (Pair) arg0;
        return this.noClass-pair.noClass;

    }

}
